cmake_minimum_required (VERSION 2.6)
project(sds)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/modules")
include(CheckKqueue)
include(CheckEpoll)

check_kqueue(HAS_KQUEUE)
check_epoll(HAS_EPOLL)

if(HAS_KQUEUE)
  add_executable(kqueuedemo src/socketaction.c src/kqueue.c)
endif(HAS_KQUEUE)

if(HAS_EPOLL)
  add_executable(epolldemo src/socketaction.c src/epoll.c)
endif(HAS_EPOLL)
